Deprecate cursor-color style properties
authorMatthias Clasen <mclasen@redhat.com>
Thu, 7 Jan 2016 03:12:35 +0000 (22:12 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 12:33:20 +0000 (07:33 -0500)
These have been replaced by CSS properties.

gtk/gtkwidget.c

index f8199fa92cace3354a2f1dcc108912c0baa89c66..80945246b07aef3af48dd25f5876bd09828d71bb 100644 (file)
@@ -3496,18 +3496,34 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                                                             0, G_MAXINT, 1,
                                                             GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+  /**
+   * GtkWidget:cursor-color:
+   *
+   * The color with which to draw the insertion cursor in entries and
+   * text views.
+   *
+   * Deprecated: 3.20: Use the caret-color CSS property
+   */
   gtk_widget_class_install_style_property (klass,
                                           g_param_spec_boxed ("cursor-color",
                                                               P_("Cursor color"),
                                                               P_("Color with which to draw insertion cursor"),
                                                               GDK_TYPE_COLOR,
-                                                              GTK_PARAM_READABLE));
+                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
+  /**
+   * GtkWidget:secondary-cursor-color:
+   *
+   * The color with which to draw the secondary insertion cursor in entries and
+   * text views when editing mixed right-to-left and left-to-right text.
+   *
+   * Deprecated: 3.20: Use the -gtk-secondary-caret-color CSS property
+   */
   gtk_widget_class_install_style_property (klass,
                                           g_param_spec_boxed ("secondary-cursor-color",
                                                               P_("Secondary cursor color"),
                                                               P_("Color with which to draw the secondary insertion cursor when editing mixed right-to-left and left-to-right text"),
                                                               GDK_TYPE_COLOR,
-                                                              GTK_PARAM_READABLE));
+                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_widget_class_install_style_property (klass,
                                           g_param_spec_float ("cursor-aspect-ratio",